import Vue from 'vue'
import { Button, Container, Footer, Header, Main, Col, Row, Menu, MenuItem, Carousel, CarouselItem, Input, Form, FormItem, Message, Steps, Step, Submenu, Aside } from 'element-ui'
const components = { Button, Container, Footer, Header, Main, Col, Row, Menu, MenuItem, Carousel, CarouselItem, Input, Form, FormItem, Steps, Step, Submenu, Aside }
// 键值对形式遍历
// Object.entries
Object.entries(components).forEach(([key, component]) => {
  Vue.use(component)
})
Vue.use(Button)
// 全局提示挂载到vue实例上
Vue.prototype.$message = Message
